package com.huixue.cn.ztej.dao;

import java.util.List;
import java.util.Map;

import com.huixue.cn.ztej.bean.MechanicalApply;
import com.huixue.cn.ztej.utils.annotation.MyBatisRepository;

@MyBatisRepository
public interface MechanicalApplyMapper {
	
	public void saveMechanicalApply(MechanicalApply mechanicalApply);
	
	public List<MechanicalApply> listMechanicalApply(Map<String,Object> map);
	
	public List<MechanicalApply> searchMechanicalApplyPage(Map<String,Object> map);
	
	public MechanicalApply findById(int applyId);
	
	public long countResult(MechanicalApply mechanicalApply);
	
	
	/**
	 * 更新申请
	 * @param mechanicalApply
	 */
	public void update(MechanicalApply mechanicalApply);
	
	/**
	 * 根据用户查找申请
	 * @param applyUserId
	 * @return
	 */
	public List<MechanicalApply> listMechanicalApplyByUserId(int applyUserId);
	
}
